package cn.tedu._06article.base.config;

import cn.tedu._06article.base.interseptor.logcheck;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

public class inconfig implements WebMvcConfigurer
{
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new logcheck())
                .addPathPatterns("/v1/**");
    }
}
